package org.september.pisces.led.entity;

import org.september.pisces.led.entity.LedFlash;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import org.september.smartdao.anno.AutoIncrease;
import org.september.smartdao.anno.Entity;
import org.september.smartdao.anno.Id;

import java.util.ArrayList;
import java.util.List;

/**
 * led方案,节目的组合,增加方案,是为了随时可以切换节目单
 */

@Entity
@Data
@Table("led_plan")
public class LedPlan {

    @Id
    @AutoIncrease
    @IsKey
    @IsAutoIncrement
    private Long id;


    @Column(value = "plan_name", comment = "方案名称", length = 64)
    private String planName;

    //每个节目的按正序存储
    @Column(value = "flash_ids", comment = "节目组合ids", length = 64)
    private String flashIds;



    private transient String flashString;
    private transient List<LedFlash> flashes =new ArrayList<>();

}
